__author__ = 'Lenka'

from random import randint


class User(object):
    """
    This class contains user's parameters.
    """
    def __init__(self, username="", password="", email=""):
        self.username = username
        self.password = password
        self.email = email

    @classmethod
    def admin(cls):
        return cls(username='admin', password='admin')

    @classmethod
    def random(cls):
        return cls(username='user%s' % randint(1, 1000),
                   password='password%s' % randint(1, 1000),
                   email='user%s@test.com' % randint(1, 1000))
